<script>
export default {
  name: 'ListOption',
  props: [
    'todoList'
  ]
}
</script>

<template>
  <div class="ListOption">
    <ul>
      <li v-for="item in todoList" :key="item.id" :class="{ completed: item.status }">
        <input type="checkbox" v-model="item.status">
        <span>{{ item.title }}</span>
      </li>
    </ul>
  </div>
</template>

<style scoped>
.ListOption {
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

ul {
  list-style-type: none;
  padding: 0;
}

li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

input[type="checkbox"] {
  margin-right: 10px;
}

span {
  flex-grow: 1;
  font-size: 16px;
  color: #333;
}

.completed span {
  text-decoration: line-through;
  color: #888;
}
</style>
